import React from 'react';
import ReactDOM from 'react-dom'
import { BrowserRouter, Route, Switch, Link,Redirect } from 'react-router-dom'
import { createStore,applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import thunk from 'redux-thunk'
import logger from 'redux-logger'
import reduxor from './redux'

import './css/index.css'
import './css/font_1141050_j6yrsaib02h.css'


import MainLayout from './container/layout/main';
import ArticleEdit from './container/userinfo/article_edit';

const store = createStore(reduxor, applyMiddleware(thunk, logger))


function App () {
    return (
        <Provider store={store}>
        <BrowserRouter>
            <Switch>
                <Route path="/article_edit" component={ArticleEdit} />
                {/* <Route path="/404" component={func404} /> */}
                <Route component={MainLayout} />
            </Switch>
        </BrowserRouter>
        </Provider>
    )
}


ReactDOM.render(<App/>, document.getElementById('root'))